home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global CR, menuText, linePtr, offsetPtr, tempText, displayLines, scrUpCast, castData
- if menuText <> EMPTY then
- set totLines to the number of lines in menuText
- set the castNum of sprite clickOn() to scrUpCast + 1
- updateStage()
- set tempText to field 441
- repeat while the mouseDown
- if offsetPtr > 0 then
- set tempText to line offsetPtr of menuText & CR & tempText
- delete line the number of lines in tempText of tempText
- put tempText into field 441
- set offsetPtr to offsetPtr - 1
- if the locH of sprite 48 < 1000 then
- set theLocV to the locV of sprite 48
- set the visible of sprite 48 to 0
- set theLocV to theLocV + the textHeight of field 441
- set the locV of sprite 48 to theLocV
- if (theLocV < the bottom of sprite 39) and (theLocV >= the top of sprite 39) then
- if rollOver(40) then
- set the visible of sprite 48 to 1
- end if
- end if
- end if
- setScroll(47, offsetPtr, totLines, 441)
- updateStage()
- end if
- end repeat
- set the castNum of sprite clickOn() to scrUpCast
- updateStage()
- else
- set me to the clickOn
- set x to the castNum of sprite me
- set the castNum of sprite me to x + 1
- repeat while the mouseDown
- updateStage()
- end repeat
- set the castNum of sprite me to x
- updateStage()
- if rollOver(me) then
- put "Search" into item 1 of castData
- setUpSprites("37-42;48", 0)
- end if
- end if
- end
-